import { _decorator, Component, director, Node, Vec3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Enemy1Control')
export class Enemy1Control extends Component {
    start() {
        director.mainLoop
    }

    update(deltaTime: number) {
        
    }


    // 异步初始化敌人1，在敌人生成时初始化敌人，
    async initEnemy(enemyPos: Vec3){
        this.node.setPosition(enemyPos);
        
    }



    

}


